﻿using System;
using System.Configuration;
using System.Collections.Generic;

namespace SBPweb.Forge.Logger.Configuration
{

    [ConfigurationCollection(typeof(ListenerElement), AddItemName = "listener")]
    public class ListenerElementCollection : ConfigurationElementCollection
    {

        #region Methods

        protected override ConfigurationElement CreateNewElement()
        {
            return new ListenerElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return (element as ListenerElement).Name;
        }

        #endregion

    }

}